STEP 4: Let's move the sprite down to stand on the moon.

  • Change the second number in the .go_to() command to -150.

The second number in .go_to() is the y-coordinate. It controls where the sprite is vertically (up and down).

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("moon") sprite = codesters.Sprite("astronaut1") sprite.go_to(-125, -50)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)